package com.ben.chatroom;

import com.ben.chatroom.server.ChatServer;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author huangyijun
 */
@SpringBootApplication
public class ChatServerApplication {
  public static void main(String[] args) {
    ConfigurableApplicationContext applicationContext = SpringApplication.run(ChatServerApplication.class, args);

    ChatServer chatServer = applicationContext.getBean(ChatServer.class);
    chatServer.run();
  }
}